package com.xiaoh.dormitoryrepairreportbackend.model.dto.skill;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;

/**
 * 维修工技能查询请求
 * 支持游标分页和页码显示的混合模式
 */
@Data
@Schema(description = "维修工技能查询请求")
public class MaintenanceSkillQueryRequest implements Serializable {

    @Schema(description = "维修工用户ID")
    private Long userId;

    @Schema(description = "维修类别ID")
    private Integer categoryId;

    @Schema(description = "维修工账号")
    private String accountName;

    @Schema(description = "维修工昵称")
    private String nickName;

    @Schema(description = "维修类别名称")
    private String categoryName;

    @Schema(description = "页面大小", example = "10")
    private Integer pageSize = 10;

    @Schema(description = "当前页码，用于前端分页组件显示", example = "1")
    private Long current = 1L;

    @Schema(description = "游标ID，用于游标分页查询（注意：维修工技能表无id字段，使用created_at时间戳作为游标）")
    private Long lastId;

    private static final long serialVersionUID = 1L;
}
